 <script type="text/javascript" src='/site_media/admin/scripts/jquery.dragsort-0.5.1.min.js'></script>
 <div class="headings altheading">
                <h2>图片列表</h2>
            </div>
            <div class="contentbox nopad ui-tabs-panel ui-widget-content ui-corner-bottom" id="contentboxitem">
              {% for info in  Model.List %}
             	<div class="newsitem" dataOrderid='{{info.ImageId}}' >
                   <a target="_blank"  href='/AdminMain/SysFile/Show/?Id={{info.FileId}}'> 
				   
				    <img src="/AdminMain/SysFile/Show/?Id={{info.FileId}}" class="hoverimg" width="180"  height="57"  onerror="this.src='/site_media/admin/img/news_temp.png' "  alt="News">
			</a>
				   
				    <h3> {{info.Ttile}}</h3></a>
					<p>
						说明： {{info.Explain}}
					   <br>
					   
					  <a href="#" dataType="confimsubmit" datareturn="updatelist"   dataval="/AdminMain/ArticleImg/DoDelNewImg/?ImageId={{info.ImageId}}" dataTip="你确定[删除]该图片?">删除</a>
					</p>
                </div>
             {% endfor %}
			 
  
    <script type="text/javascript">
		$("#contentboxitem").dragsort({ dragSelector: "div", dragBetween: true, dragEnd: saveOrder, placeHolderTemplate: "" });
		
		function saveOrder(test) {
			var data = $("#contentboxitem div").map(function() { return $(this).attr('dataOrderid'); }).get().join(',');
		
			 $.AjaxServer('/AdminMain/ArticleImg/DoMobile/',{dataOrderid:data,KeyId:'{{Model.KeyId}}'},function(){
			   $.tips('操作成功');
			 })
				 
		};
		 $(InfoPage)
		
	</script>
	
</div>